//
//  KqMLocation.h
//  kq_flutter_widgets
//
//  Created by wtb on 2023/4/10.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface KqMLocation : NSObject

//经度
@property (copy, nonatomic ) NSString         *latitude;
//纬度
@property (copy, nonatomic ) NSString         *longitude;
//地理位置的名字
@property (copy, nonatomic  ) NSString        *strAdress;

+(KqMLocation *)sharedInstance;

//比较两个之间的距离
- (double)compareDistance:(NSString *)latitude longitude:(NSString *)longitude;

//开启定位
- (BOOL)startGetLocation;

//获取定位,不弹去设置页面的弹窗
-(void)getLocation;

//停止定位
- (void)stopLocation;

//是否开启了定位
-(BOOL)isOpenPermission;
@end

NS_ASSUME_NONNULL_END
